package com.persion.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;

import com.persion.common.annotation.Excel;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 老人个人信息(Opeople)表实体类
 *
 * @author WangFK
 * @since 2024-01-23 20:13:34
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "Opeople对象", description = "老人个人信息")
@TableName("opeople")
public class Opeople implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 老人编号
     */
    @ApiModelProperty(value = "老人编号")
    @TableId(value = "op_id", type = IdType.AUTO)
    @Excel(name = "老人序号", cellType = Excel.ColumnType.NUMERIC, prompt = "老人编号")
    private Long opId;

    /**
     * 老人姓名
     */
    @Excel(name = "老人姓名")
    @ApiModelProperty(value = "老人姓名")
    private String opName;

    /**
     * 老人年龄
     */
    @Excel(name = "老人年龄")
    @ApiModelProperty(value = "老人年龄")
    private String opAge;

    /**
     * 老人性别 0男 1女 2未知
     */
    @Excel(name = "用户性别", readConverterExp = "0=男,1=女,2=未知")
    @ApiModelProperty(value = "老人性别 0男 1女 2未知")
    private String opSex;

    /**
     * 籍贯 采用orc图片认证
     */
    @Excel(name = "老人籍贯")
    @ApiModelProperty(value = "籍贯 采用orc图片认证")
    private String opNative;
    /**
     * 籍贯 采用orc图片认证
     */
    @ApiModelProperty(value = "身份证号")
    private String opIdcard;

    /**
     * 住址
     */

    @ApiModelProperty(value = "住址")
    private String opAddress;

    /**
     * 照片
     */
    @ApiModelProperty(value = "照片")
    private String opPhoto;

    /**
     * 身份证
     */
    @ApiModelProperty(value = "身份证")
    private String opCard;

    /**
     * 联系电话
     */
    @Excel(name = "手机号码")
    @ApiModelProperty(value = "联系电话")
    private String opPhone;

    /**
     * 出生日期
     */
    @Excel(name = "出生日期")
    @ApiModelProperty(value = "出生日期")
    private Date opBirthday;

    /**
     * 删除标志 0 存在 2删除
     */
    @TableLogic
    @ApiModelProperty(value = "删除标志 0 存在 2删除")
    private String delFlag;

    /**
     * 最后登录ip
     */
    @Excel(name = "最后登录IP", type = Excel.Type.EXPORT)
    @ApiModelProperty(value = "最后登录ip")
    private String loginIp;

    /**
     * 最后登录地点
     */
    @Excel(name = "最后登录地点")
    @ApiModelProperty(value = "最后登录地点")
    private String loginAddress;

    /**
     * 最后登录时间
     */
    @Excel(name = "最后登录时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss", type = Excel.Type.EXPORT)
    @ApiModelProperty(value = "最后登录时间")
    private Date loginData;

    /**
     * 密码
     */
    @ApiModelProperty(value = "密码")
    private String opPassword;

    /**
     * 账号状态 0正常 1停用
     */
    @Excel(name = "帐号状态", readConverterExp = "0=正常,1=停用")
    @ApiModelProperty(value = "账号状态 0正常 1停用")
    private String opStatus;

}

